@extends('d.layout.index')
@section('con')
<div class="mws-panel grid_8">
 	<div class="mws-panel-header">
     	<span>用户编辑</span>
     </div>

     <div class="mws-panel-body no-padding">
     	<form class="mws-form" action="/admin/user/update" method="post">
               <input type="hidden" name='id' value='{{$v['id']}}'>
               {{csrf_field()}}
     		<div class="mws-form-inline">
     			<div class="mws-form-row">
     				<label class="mws-form-label">账号</label>
     				<div class="mws-form-item">
     					<input type="text" name='username' class="small" value='{{$v['username']}}'>
     				</div>
     			</div>    			
     		</div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">邮箱</label>
                         <div class="mws-form-item">
                              <input type="text" name='email' class="small" disabled value='{{$v['email']}}'>
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">状态</label>
                        <div class="mws-form-item">
                              <select class="small" name="status">
                                   <option value="0" @if($v['status']=="0") selected @endif>未激活</option>
                                   <option value="1" @if($v['status']=="1") selected @endif>激活</option>
                              </select>
                         </div>
                    </div>
               </div>      
     		<div class="mws-button-row">
     			<input type="submit" value="修改" class="btn btn-danger">
     			<input type="reset" value="重置" class="btn ">
     		</div>
     	</form>
     </div>    	
</div>
@endsection